<?php
/*
 *模型：message
 *class.message.php
 *By QiuJun
 */
 
class message{

	var $db;

	function message($dbhandle){
		$this->db = $dbhandle;
	}
	
	//发送消息
	function sendmsg($userid,$touserid,$content){
		$arrData = array(
			'userid'		=> intval($userid),
			'touserid'		=> intval($touserid),
			'content'		=> trim($content),
			'addtime'			=> time(),
		);
		$messageid = $this->db->insertArr($arrData,'app_message');
		
	}
	
}